
public class PropertyBlock extends Block {

	private String propertyName, propertyImage, propertyDeedSmall, propertyDeedLarge, propertyDeedMortgaged;
	private int price, rent0, rent1, rent2, rent3, rent4, rent5, propertyGroup,
				mortgageValue, costOfHouse, currentNumberOfHouses, currentRent, propertyID;
	private boolean isMortgaged;
	private Player cOwner;

	public PropertyBlock(	String nme, int id, int propGroup,int prce,int rnt0,int rnt1,int rnt2,
							int rnt3,int rnt4,int rnt5,int mortgageVal,int cstOfHouse,int cNumberOfHouses,
							boolean isMortgd,String propImge, String deedSmall, String deedLarge, String deedMortgaged,
							int blkNum){
		
		this.propertyName=nme;
		this.propertyID=id;
		this.propertyGroup=propGroup;
		this.cOwner=null;
		this.propertyImage=propImge;
		this.propertyDeedSmall=deedSmall;
		this.propertyDeedLarge=deedLarge;
		this.propertyDeedMortgaged=deedMortgaged;
		this.price=prce;
		this.rent0=rnt0;
		this.rent1=rnt1;
		this.rent2=rnt2;
		this.rent3=rnt3;
		this.rent4=rnt4;
		this.rent5=rnt5;
		this.mortgageValue=mortgageVal;
		this.costOfHouse=cstOfHouse;
		this.currentNumberOfHouses=cNumberOfHouses;
		this.currentRent = 0; // question
		super.setBlockNumber(blkNum);
		
	}

	public String getPropertyName() {
		return propertyName;
	}
	
	public int getPropertyID(){
		return propertyID;
	}

	public String getPropertyImage() {
		return propertyImage;
	}
	
	public String getPropertyDeedSmall(){
		return propertyDeedSmall;
	}
	
	public String getPropertyDeedLarge(){
		return propertyDeedLarge;
	}
	
	public String getPropertyDeedMortgaged(){
		return propertyDeedMortgaged;
	}
	
	public int getPropertyGroup(){
		return propertyGroup;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int prce) {
		this.price = prce;
	}

	public int getRent0() {
		return rent0;
	}

	public int getRent1() {
		return rent1;
	}

	public int getRent2() {
		return rent2;
	}

	public int getRent3() {
		return rent3;
	}

	public int getRent4() {
		return rent4;
	}

	public int getRent5() {
		return rent5;
	}
	
	public Player getCOwner(){
		return cOwner;
	}
	
	public void setCOwner(Player play){
		this.cOwner=play;
	}

	public int getMortgageValue() {
		return mortgageValue;
	}
	

	public void setPropertyImage(String propertyImage) {
		this.propertyImage = propertyImage;
	}


	public void setMortgageValue(int mortgageValue) {
		this.mortgageValue = mortgageValue;
	}

	public int getCostOfHouse() {
		return costOfHouse;
	}

	public void setCostOfHouse(int costOfHouse) {
		this.costOfHouse = costOfHouse;
	}

	public int getCurrentNumberOfHouses() {
		return currentNumberOfHouses;
	}

	public void setCurrentNumberOfHouses(int currentNumberOfHouses) {
		this.currentNumberOfHouses = currentNumberOfHouses;
	}

	public boolean getIsMortgaged() {
		return isMortgaged;
	}

	public void setIsMortgaged(boolean isMortgaged) {
		this.isMortgaged = isMortgaged;
	}
	
	public int getCurrentRent(){
		return currentRent;
	}
	public void setCurrentRent(int cRent){
		switch(cRent){
					case 0:
							this.currentRent=rent0;
							break;
					case 1:
							this.currentRent=rent1;
							break;
					case 2:
							this.currentRent=rent2;
							break;
					case 3:
							this.currentRent=rent3;
							break;
					case 4:
							this.currentRent=rent4;
							break;
					case 5:
							this.currentRent=rent5;
							break;
					case 6:
							this.currentRent=(rent0*2);
							break;
		}
	}
	
	public void setCurrentRent(int currentRent, String load){
		
		this.currentRent = currentRent;
		
	}

	public void setPropertyName(String propertyName) {
		this.propertyName = propertyName;
	}

	public void setPropertyDeedSmall(String propertyDeedSmall) {
		this.propertyDeedSmall = propertyDeedSmall;
	}

	public void setPropertyDeedLarge(String propertyDeedLarge) {
		this.propertyDeedLarge = propertyDeedLarge;
	}

	public void setPropertyDeedMortgaged(String propertyDeedMortgaged) {
		this.propertyDeedMortgaged = propertyDeedMortgaged;
	}

	public void setRent0(int rent0) {
		this.rent0 = rent0;
	}

	public void setRent1(int rent1) {
		this.rent1 = rent1;
	}

	public void setRent2(int rent2) {
		this.rent2 = rent2;
	}

	public void setRent3(int rent3) {
		this.rent3 = rent3;
	}

	public void setRent4(int rent4) {
		this.rent4 = rent4;
	}

	public void setRent5(int rent5) {
		this.rent5 = rent5;
	}

	public void setPropertyGroup(int propertyGroup) {
		this.propertyGroup = propertyGroup;
	}

	public void setPropertyID(int propertyID) {
		this.propertyID = propertyID;
	}

	public void setMortgaged(boolean isMortgaged) {
		this.isMortgaged = isMortgaged;
	}

	public void setcOwner(Player cOwner) {
		this.cOwner = cOwner;
	}
	
	
	
}
